// Application.Validation.Rule.js
Application.Validation.Rule = (function () {
    function Rule () {
        this.required = function (value) {
            return '' !== value && 'undefined' !== typeof value;
        };
        this.matches = function (value, regex) {
            return regex.test(value);
        };
        this.between = function (value, minValue, maxValue) {
            return value >= minValue && value <= maxValue;
        };
    };
    return new Rule();
})();
